﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Smartmanufact
{
    public partial class CargoClear : Form
    {
        public string delete_row_index = "";
        public string delete_col_index = "";
        public string shelf = "";

        public CargoClear()
        {
            InitializeComponent();
        }

        private void CargoClear_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MainView.mysql.excute_sql("delete from cargotable where shelf='" + shelf + "' AND shelf_row_index='" + delete_row_index + "' AND shelf_col_index='"+delete_col_index+"'");
            this.DialogResult = DialogResult.OK;
            this.Dispose();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Dispose();
        }
    }
}
